package com.yidaozou.jsonobj.req;

/**
 * 报文头
 * @author wanghua
 * @date 2015/01/22
 */
public class Head {
	//版本号
	private String version;
	//唯一流水号
	private String requestId;
	//业务编码
	private String businessCode;
	//业务类型
	private String businessType;
	//业务名称
	private String businessName;
	//请求时间
	private String requestTime;
	//验签参数
	private String signature;
	//时间戳
	private String timestamp;
	//随机数
	private String nonce;
	
	public String getVersion() {
		return version;
	}
	public void setVersion(String version) {
		this.version = version;
	}
	public String getRequestId() {
		return requestId;
	}
	public void setRequestId(String requestId) {
		this.requestId = requestId;
	}
	public String getBusinessCode() {
		return businessCode;
	}
	public void setBusinessCode(String businessCode) {
		this.businessCode = businessCode;
	}
	public String getRequestTime() {
		return requestTime;
	}
	public void setRequestTime(String requestTime) {
		this.requestTime = requestTime;
	}
	public String getSignature() {
		return signature;
	}
	public void setSignature(String signature) {
		this.signature = signature;
	}
	public String getTimestamp() {
		return timestamp;
	}
	public void setTimestamp(String timestamp) {
		this.timestamp = timestamp;
	}
	public String getNonce() {
		return nonce;
	}
	public void setNonce(String nonce) {
		this.nonce = nonce;
	}
	public String getBusinessType() {
		return businessType;
	}
	public void setBusinessType(String businessType) {
		this.businessType = businessType;
	}
	public String getBusinessName() {
		return businessName;
	}
	public void setBusinessName(String businessName) {
		this.businessName = businessName;
	}
	
	public String toString() {
		return this.version + "|" + this.requestId + "|" +this.businessCode + "|" + this.businessType + 
		     "|" + this.businessName + "|" + this.requestTime + "|" + this.signature + "|" + this.timestamp + "|" + this.nonce;
	}
}
